import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Camera from '@/views/camera.vue'
import DataInit from '@/views/datainit.vue'
import DataView from '@/views/dataview.vue'

Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/a/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },
    {
      path: '/datainit/',
      name: 'DataInit',
      component: DataInit
    },
    {
      path: '/camera/',
      name: 'Camera',
      component: Camera
    },
    {
      path: '/dataview/',
      name: 'DataView',
      component: DataView
    },
    {
      path: '',
      name: 'DataInit',
      component: DataInit
    }
  ]
})
